package com.icangya.domain;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "fb_turntable_record")
public class FbTurntableRecord {  // 大转盘记录

    private long id;//编号

    private String nickName; //用户名

    private String openId;

    private long uid;

    private String headImgUrl;

    private long awardId;// 获取奖励的编号

    private double amountBet;// 下注额

    private  double amountMoney;//中奖金额

    private Timestamp createTime;

    private String siteContent;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "nick_name")
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Basic
    @Column(name = "openid")
    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Basic
    @Column(name = "uid")
    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    @Basic
    @Column(name = "headImg_url")
    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }


    @Basic
    @Column(name = "award_id")
    public long getAwardId() {
        return awardId;
    }

    public void setAwardId(long awardId) {
        this.awardId = awardId;
    }

    @Basic
    @Column(name = "amount_bet")
    public double getAmountBet() {
        return amountBet;
    }

    public void setAmountBet(double amountBet) {
        this.amountBet = amountBet;
    }
    @Basic
    @Column(name = "amount_money")
    public double getAmountMoney() {
        return amountMoney;
    }

    public void setAmountMoney(double amountMoney) {
        this.amountMoney = amountMoney;
    }

    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "site_content")
    public String getSiteContent() {
        return siteContent;
    }

    public void setSiteContent(String siteContent) {
        this.siteContent = siteContent;
    }

    public FbTurntableRecord() {
    }


    public FbTurntableRecord(String nickName, String openId, long uid, String headImgUrl, long awardId, double amountBet, double amountMoney, Timestamp createTime, String siteContent) {
        this.nickName = nickName;
        this.openId = openId;
        this.uid = uid;
        this.headImgUrl = headImgUrl;
        this.awardId = awardId;
        this.amountBet = amountBet;
        this.amountMoney = amountMoney;
        this.createTime = createTime;
        this.siteContent = siteContent;
    }
}
